home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
windows
/
zippro.zip
/
ZIPPRO.WAS
< prev
next >
Wrap
Text File
|
1992-12-10
|
966b
|
43 lines
;ZipPro Version 1.2***********************************;
proc main
fopen 0 "f:\prowin\capture\fileclip.txt" READ TEXT
if not success
usermsg "could not open fileclip.txt"
endif
while not feof 0
fgets 0 S0
if not strfind S0 ".ZIP"
loopwhile
endif
strcmp S0 $nullstr
if success
exitwhile
else
call md_fzip
call Zip_process
endif
endwhile
fclose 0
;delete "f:\prowin\capture\fileclip.txt" ;remove the first ";" if you
;want to delete the fileclip.txt
;file.
endproc
proc md_fzip
strcpy S1 S0
strupr S1
strreplace S1 ".ZIP" ""
strfmt S2 "g:\test\%s" S1
mkdir S2
endproc
proc zip_process
chdir "F:\PROWIN\DNLOAD"
strfmt S3 "d:\pkz\pkunzip f:\prowin\dnload\%s g:\test\%s" S0 S1
dos S3 hidden
if not success
usermsg "could not unzip"
endif
endproc